package com.mti.epivisite.common.map
{
	import com.mti.epivisite.common.event.PointOfInterest;
	import com.mti.epivisite.common.event.Waypoint;

	public class MapProxyMock extends MapProxyBase
	{
		public function MapProxyMock()
		{
			super();
		}
		
		override public function load():void
		{
			var map:Map = new Map();
			map.image = MapImages.Plan;
			
			var wp:Waypoint = null;
			var poi:PointOfInterest = null;
			
			wp = new Waypoint();
			wp.x = 193;
			wp.y = 72;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 235;
			wp.y = 85;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 235;
			wp.y = 134;
			poi = new PointOfInterest();
			poi.title = "Accueil";
			wp.poi = poi;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 140;
			wp.y = 134;
			poi = new PointOfInterest();
			poi.title = "Amphi1";
			wp.poi = poi;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 193;
			wp.y = 134;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 193;
			wp.y = 230;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 75;
			wp.y = 230;
			poi = new PointOfInterest();
			poi.title = "Amphi2";
			wp.poi = poi;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 193;
			wp.y = 230;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 193;
			wp.y = 200;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 270;
			wp.y = 200;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 270;
			wp.y = 150;
			map.waypoints.push(wp);
			
			wp = new Waypoint();
			wp.x = 320;
			wp.y = 150;
			poi = new PointOfInterest();
			poi.title = "Amphi3";
			wp.poi = poi;
			map.waypoints.push(wp);
			
			data = map;
			
			isLoaded = true;
			sendNotification(LOAD_SUCCESS);
		}
	}
}